﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace Booking_Hotel
{
    public partial class Test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void bt_Insert_Click(object sender, EventArgs e)
        {
            string Chuoimh = FormsAuthentication.HashPasswordForStoringInConfigFile(txt_ChuoiCanMH.Text.Trim(), "MD5");
            //string Chuoimh = Code.MaHoa(txt_ChuoiCanMH.Text.Trim(), "MD5");
            txt_ChuoiMH.Text = Chuoimh;
            txt_ChuoiCanGM.Text = Chuoimh;
        }

        protected void bt_Update_Click(object sender, EventArgs e)
        {
            string chuoigm = Code.GiaiMa("MD5", txt_ChuoiCanGM.Text.Trim());
            txt_ChuoiGM.Text = chuoigm;
        }
    }
}